// use localStorage to store the authority info, which might be sent from server in actual project.
export function getAuthority() {
//  console.log('auth1',localStorage.getItem('mb_user'))
  return localStorage.getItem('mb_user')  || 'guest';
  // return localStorage.getItem('antd-pro-authority') || 'admin';
}


export function setAuthority(authority) {
//  console.log('auth222',authority)
  //return localStorage.setItem('mb_user', authority);
  return localStorage.setItem('mb_user', authority);
}
